package com.trkj.pojo;

import java.io.Serializable;
import javax.persistence.*;
import java.math.BigDecimal;
import java.sql.Timestamp;


/**
 * The persistent class for the SLOTCARDDATE database table.
 * 
 */
@Entity
@NamedQuery(name="Slotcarddate.findAll", query="SELECT s FROM Slotcarddate s")
public class Slotcarddate implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(name="SLOTCARDDATE_SLOTCARDID_GENERATOR", sequenceName="HR")
	@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="SLOTCARDDATE_SLOTCARDID_GENERATOR")
	@Column(name="SLOTCARD_ID")
	private long slotcardId;

	@Column(name="SLOTCARD_DATE")
	private Timestamp slotcardDate;

	@Column(name="SLOTCARD_EFFECT")
	private BigDecimal slotcardEffect;

	@Column(name="SLOTCARD_REASON")
	private String slotcardReason;

	//bi-directional many-to-one association to StaffInformation
	@ManyToOne
	@JoinColumn(name="STAIN_ID")
	private StaffInformation staffInformation;

	public Slotcarddate() {
	}

	public long getSlotcardId() {
		return this.slotcardId;
	}

	public void setSlotcardId(long slotcardId) {
		this.slotcardId = slotcardId;
	}

	public Timestamp getSlotcardDate() {
		return this.slotcardDate;
	}

	public void setSlotcardDate(Timestamp slotcardDate) {
		this.slotcardDate = slotcardDate;
	}

	public BigDecimal getSlotcardEffect() {
		return this.slotcardEffect;
	}

	public void setSlotcardEffect(BigDecimal slotcardEffect) {
		this.slotcardEffect = slotcardEffect;
	}

	public String getSlotcardReason() {
		return this.slotcardReason;
	}

	public void setSlotcardReason(String slotcardReason) {
		this.slotcardReason = slotcardReason;
	}

	public StaffInformation getStaffInformation() {
		return this.staffInformation;
	}

	public void setStaffInformation(StaffInformation staffInformation) {
		this.staffInformation = staffInformation;
	}

}